package jude.java.money.provide.impl;

import java.util.List;

import jude.java.money.beans.FtpSite;
import jude.java.money.provide.PagingProvider;
import jude.java.money.service.HeiService;
import jude.java.money.spring.Services;

public class PingFtpSiteProvider extends PagingProvider<FtpSite> {

	private HeiService heiService;
	
	public PingFtpSiteProvider() {
		heiService = Services.getHeiService();
	}
	
	@Override
	protected List<FtpSite> loadRecords(int pageSize, int pageIndex) {
		return heiService.listPingFtpSites(pageSize, pageIndex);
	}

}
